// 整合路由组件
import findMusic from '@/pages/find-music'
// dindMusic子组件 推荐页
import recommend from '@/pages/find-music/recommend'

// 排行榜页 ********** start
import list from '@/pages/find-music/list'
// 排行榜页面内部右侧页面
import listRight from '@/pages/find-music/list/list-right'
// ************ end

// 歌单
import playlist from '@/pages/find-music/playlist'

// 主播电台 ************* start
import djRadio from '@/pages/find-music/dj-radio'
// 主播电台--主页面子页面（初次加载时）
import mainPage from '@/pages/find-music/dj-radio/main-page'
// 主播电台--根据导航显示的页面
import category from '@/pages/find-music/dj-radio/category'
// ************end

// 歌手 ***************** start
import singers from '@/pages/find-music/singers'
// 歌手页面主页面
import singersHome from '@/pages/find-music/singers/singers-home'
// 全部入驻歌手页面
import settledSingers from '@/pages/find-music/singers/settled-singers'
// 共享页面 -- 华语、欧美、日本、韩国、其他
import singerShare from '@/pages/find-music/singers/singer-share'
// ***************end

// 新碟上架
import newDisc from '@/pages/find-music/new-disc'
import myMusic from '@/pages/my-music'
import concern from '@/pages/concern'

// 共用具体路由组件
import detailPlaylist from '@/pages/detail-playlist'

export default [
    { path: '/', redirect: '/find-music' },
    {
      path: '/find-music', component: findMusic,
      redirect:'/find-music/recommend',
      children:[
        // 音乐推荐
        {path:'recommend',name:'recommend',component:recommend},
        // 排行榜
        {
          path:'list',component:list,
          redirect:'list/list-right',
          name:'list',
          children:[
            {path:'list-right',component:listRight}
          ]
        },
        // 歌单
        {path:'playlist',name:'playlist',component:playlist},
        // 主播电台
        {path:'dj-radio',component:djRadio,
          name:'dj-radio',
          // redirect:'dj-radio/main-page',
          redirect:'dj-radio/category',
          children:[
            {path:'main-page',component:mainPage},
            {path:'category',component:category}
          ]
        },
        // 歌手
        {path:'singers',component:singers,
          name:'singers',
          redirect:'singers/settled-singers',
          children:[
            {path:'settled-singers',component:settledSingers},
            {path:'singers-home',component:singersHome},
            {path:'singer-share',component:singerShare}
          ]
        },
        // 新碟上架
        {path:'new-disc',name:'new-disc',component:newDisc}
      ]
    },
    {
      path: '/my-music', component: myMusic
    },
    {
      path: '/concern', component: concern
    },
    // 具体歌单路由
    {
      path:'/detail-playlist/:id',name:'detail-playlist',component:detailPlaylist
      // path:'/detail-playlist?id=:id',name:'detail-playlist',component:detailPlaylist
    }
  ]